package com.xhtt.modules.inspection.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 排班详情
 *
 * @Date 2019-02-13 下午 3:02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class InsClassesTeamDetail extends Model<InsClassesTeam> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer classId;

    /**
     * 时间点
     */
    private LocalDateTime date;

    /**
     * 早班id
     */
    private Integer teamMorning;

    /**
     * 晚班id
     */
    private Integer teamNight;

    private String memo;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
